<div class="choseInput" style="width:800px; margin-top: 20px;">
    <div class="slider_right slider_right_lg {{ data.isShowAddView ? 'active' : 'default' }} panel panel-default"
         style="background-color: white;">

        <div class="panel-heading clearfix">
            <button class="btn btn-xs" ng-click="pic='';data.isShowAddView = !data.isShowAddView">关闭</button>
        </div>
        <form name="myForm" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-3 control-label">图片</label>
                <div class="col-sm-9">
                    <input type="file" ngf-select="" ng-model="pic" name="file" ngf-accept="'image/*'" required="">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label"> <img ngf-src="pic" class="thumb" style="width: 160px;"></label>
                <div class="col-sm-9">
                    <button ng-disabled="!myForm.$valid" ng-click="uploadPic(pic)">上传图片</button>
                <span class="progress" ng-show="picFile.progress >= 0">
                  <div style="width:{{picFile.progress}}%" ng-bind="picFile.progress + '%'" class="ng-binding"></div>
              </span>
                </div>
            </div>
        </form>
        <form class="form-horizontal" style="width:600px; margin-top: 20px;">
            <div class="form-group">
                <label class="col-sm-3 control-label">商品id</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.commodityId" placeholder="商品id" readonly>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">商品名称</label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.name" placeholder="商品名称">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品描述</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.descr" placeholder="商品描述">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品科目</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.subject" placeholder="商品科目">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商品分类</label>

                <div class="row">
                    <div class="col-sm-4">
                        <select class="form-control" ng-model="f_add.name" ng-options="f_add.name for f_add in f_add_class" >
                            <option value="">-- 请选择商品分类 --</option>
                        </select>
                    </div>
                    <div class="col-sm-4" ng-if="f_add.name">
                        <select class="form-control" ng-model="s_add.name" ng-options="s_add.name for s_add in s_add_class">
                            <option value="">-- 请选择商品二级分类 --</option>
                        </select>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">商品价格</label>

                <div class="col-sm-9">
                    <div class="input-group">
                        <input type="text" class="form-control" ng-model="customer.curPrice" placeholder="商品价格">
                        <span class="input-group-addon">元</span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">售价</label>

                <div class="col-sm-9">
                    <div class="input-group">
                        <input type="text" class="form-control" ng-model="customer.outPrice" placeholder="售价">
                        <span class="input-group-addon">元</span>
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">价格单位</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.unit" placeholder="价格单位">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="letter-spacing: -1px">每单位重量及描述</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.curUnitWeight" placeholder="每单位重量及描述">
                </div>

            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label" style="letter-spacing: -1px">库存</label>

                <div class="col-sm-9">
                    <input type="text" class="form-control" ng-model="customer.stock" placeholder="0">
                </div>

            </div>
            <div class="form-group">
                <div class="col-sm-offset-3 col-sm-9">
                    <button class="btn btn-default" ng-click="commodityDetail(customer)">提交</button>
                </div>
            </div>
        </form>
    </div>
    <div class="btn-group btn-group-sm pull-right" role="group" aria-label="...">
        <button type="button" class="btn btn-success" ng-click="showAddView();">新增商品</button>
    </div>
    <div class="form-group">
        <button class="col-sm-3 btn btn-default" ng-click="chooseCustomer = !chooseCustomer;chooseCustomer2=false;">
            选择客户
        </button>
        <div class="col-sm-9">
            {{detail.storeName}}
        </div>
    </div>
    <div class="form-group">
        <button class="col-sm-3 btn btn-default" ng-click="chooseCustomer2 = !chooseCustomer2; chooseCustomer = false;">
            添加商品
        </button>
        <div class="col-sm-9">
            <div ng-repeat="item in detail.commoditys">
                名称:{{item.name}} <span ng-if="item.commodityName">{{item.commodityName}}</span>
                数量: <input ng-model="item.number" style="width:100px;height:30px" type="number">
                单价：<input ng-model="item.outPrice" style="width:100px;height:30px" type="number">
                <a ng-click="removeCart(item.commodityId)">删除</a>
            </div>
        </div>
    </div>
    <div class="form-group">
        <button class="col-sm-3 btn btn-default">备注</button>
        <div class="col-sm-9">
            <input type="text" class="form-control" ng-model="detail.remarks" placeholder="备注">
        </div>
    </div>
    <div class="form-group">
        <button class="col-sm-3 btn btn-default">送货时间</button>
        <div class="col-sm-9">
            <span>默认明天（{{day}}）</span>
            <!--<input class=" form-control" type="date" ng-model="detail.receivingDate" placeholder="送货时间" value="detail.receivingDate | date:'yyyy-MM-dd'">-->
            <select class="select" ng-model="detail.receivingDate">
                <option ng-selected="true" value="">选择时间段</option>
                <option value="06:00～06:30">06:00～06:30</option>
                <option value="06:30～07:00">06:30～07:00</option>
                <option value="07:00～07:30">07:00～07:30</option>
                <option value="07:30～08:00">07:30～08:00</option>
                <option value="08:00～08:30">08:00～08:30</option>
                <option value="08:30～09:00">08:30～09:00</option>
                <option value="09:00～09:30">09:00～09:30</option>
                <option value="09:30～10:00">09:30～10:00</option>
                <option value="10:00～10:30">10:00～10:30</option>
                <option value="10:30～11:00">10:30～11:00</option>
                <option value="11:00～11:30">11:00～11:30</option>
                <option value="11:30～12:00">11:30～12:00</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-9">
            <a class="btn btn-default" ng-click="submit()">生成订单</a>
        </div>
    </div>

</div>
<div class="slider_right_lg {{ chooseCustomer ? 'active' : 'default' }}">
    <button type="button" class="btn btn-sm pull-left" style="margin-left: 15px; margin-top: 14px;"
            ng-click="chooseCustomer = !chooseCustomer">关闭
    </button>
    <cdschoselinecustom customerid="detail.customerId" customername="detail.storeName"></cdschoselinecustom>
</div>
<div class="slider_right_lg {{ chooseCustomer2 ? 'active' : 'default' }}">
    <button type="button" class="btn btn-sm pull-left" style="margin-left: 15px; margin-top: 14px;"
            ng-click="chooseCustomer2 = !chooseCustomer2">关闭
    </button>
    <choseproduct commoditys="detail.commoditys"></choseproduct>


</form>
        </div>
    </div>
